package com.riant.day07;

/**
 * @Classname SynchronizedDemo
 * @Description TODO
 * @Date 2021/3/19 0:01
 * @Created by 张斌
 */
class SynchronizedDemo {
    public synchronized void m() {
        System.out.printf("WUST");
    }

    public void m2() {
        synchronized(this) {
            System.out.printf("WUST");
        }
    }
}
